package com.bawan.ddbb.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Desc:
 * Author: zhengcongchun
 * CreateTime: 2014-06-11 15:40
 * LastModifyTime: 2014-06-11 15:40
 * FinalModifier: zhengcongchun
 * Version: 1.0
 */
@Entity
@Table(name = "t_topic")
public class Topic extends BaseDomain {
    @Id
    @Column(name = "topic_id")
    private int topicId;

    @Column(name = "board_id")
    private int boardId;

    @Column(name = "topic_title")
    private String topicTitle;

    @Column(name = "user_id")
    private int userId;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "last_post")
    private Date lastPost;

    @Column(name = "topic_views")
    private int topicViews;

    @Column(name = "topic_replies")
    private int topicReplies;

    @Column(name = "digest")
    private int digest;

    public int getTopicId() {
        return topicId;
    }

    public void setTopicId(int topicId) {
        this.topicId = topicId;
    }

    public int getBoardId() {
        return boardId;
    }

    public void setBoardId(int boardId) {
        this.boardId = boardId;
    }

    public String getTopicTitle() {
        return topicTitle;
    }

    public void setTopicTitle(String topicTitle) {
        this.topicTitle = topicTitle;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastPost() {
        return lastPost;
    }

    public void setLastPost(Date lastPost) {
        this.lastPost = lastPost;
    }

    public int getTopicViews() {
        return topicViews;
    }

    public void setTopicViews(int topicViews) {
        this.topicViews = topicViews;
    }

    public int getTopicReplies() {
        return topicReplies;
    }

    public void setTopicReplies(int topicReplies) {
        this.topicReplies = topicReplies;
    }

    public int getDigest() {
        return digest;
    }

    public void setDigest(int digest) {
        this.digest = digest;
    }
}
